import { cardTypeType } from "../pages/course/cpms/card/config";
import { Tag } from "antd";

export const getCardType = (type: cardTypeType) => {
  switch (type) {
    case cardTypeType.TIME:
      return <Tag color={"blue"}>次卡</Tag>;
    case cardTypeType.DURATION:
      return <Tag color={"green"}>时长卡</Tag>;
    default:
      return "_";
  }
};
